package org.jeecg.modules.business.doc.outbound.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.jeecg.modules.business.doc.outbound.entity.WmsOutReceiptMaterial;
import org.jeecg.modules.business.doc.outbound.mapper.WmsOutReceiptMaterialMapper;
import org.jeecg.modules.business.doc.outbound.service.IWmsOutReceiptMaterialService;
import org.jeecg.modules.business.doc.outbound.vo.WmsOutReceiptMaterialResponseVO;
import org.springframework.stereotype.Service;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Description: 出库单-物料
 * @Author: jeecg-boot
 * @Date:   2023-08-09
 * @Version: V1.0
 */
@Service
public class WmsOutReceiptMaterialServiceImpl extends ServiceImpl<WmsOutReceiptMaterialMapper, WmsOutReceiptMaterial> implements IWmsOutReceiptMaterialService {

	@Autowired
	private WmsOutReceiptMaterialMapper wmsOutReceiptMaterialMapper;

	@Override
	public List<WmsOutReceiptMaterial> selectByMainId(String mainId) {
		return wmsOutReceiptMaterialMapper.selectByMainId(mainId);
	}

	/**
	 * 出库单-物料主表ID分页查询
	 * @param page
	 * @param id
	 * @return
	 */
    @Override
    public IPage<WmsOutReceiptMaterialResponseVO> queryPageReceiptMaterialByTaskId(IPage<WmsOutReceiptMaterial> page, String id) {
		IPage<WmsOutReceiptMaterialResponseVO> pageList=wmsOutReceiptMaterialMapper.queryPageReceiptMaterialByTaskId(page,id);
		return pageList;
    }
}
